package single;

/**
 * @Author longhj
 * @Description 使⽤类的内部类(线程安全)
 * @Date 2021/09/04 星期六 14:59
 */
public class InnerClassThreadSafety {
    private InnerClassThreadSafety() {
    }

    static class InnerClass {
        private static InnerClassThreadSafety innerClassThreadSafety = new InnerClassThreadSafety();
    }

    public InnerClassThreadSafety innerClassThreadSafety() {
        return InnerClass.innerClassThreadSafety;
    }
}
